home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Help
- Date: 2 Feb 1996 12:26:05 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4esvst$d8a@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 01, 1996 23:27:26 in article <Help>, 'Gary Hagen <GaryJ@gnn.com>'
- wrote:
-
-
- >Hi,
- >I am having trouble with a 2 file + header program.I get
- >link error 2025.I am using a structure called golf with a
- >variable g.When I try to build the project I get
- >2025....says struct golf near* near g defined more than
- >once in file golfer2.I can't seem to figure this out and
- >would appreciate any help I can get.I am using MSVC++ 1.52
- >
- How'd you define the structure? If it's something like
-
- struct Foo { int x; } foo;
-
- then you are instantiating the structure each time you
- include the header file. Declare it instead as
-
- struct Foo { int x; };
-
- but then you must instantiate it in one of your source
- files.
-
- If the above doesn't apply, post some code.
-
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-